package com.ywgt.mapper;

import com.github.pagehelper.Page;
import com.ywgt.pojo.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 评论表 Mapper 接口
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
public interface CommentMapper extends BaseMapper<Comment> {

    Page<Comment> selectComments(@Param("userId") String userId,@Param("valueId") String valueId,@Param("sort") String sort,@Param("order") String order);

    Page<Comment> selectCommentList(@Param("valueId") Integer valueId,@Param("type") Integer type,@Param("showType") Integer showType);
}
